*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Helvetica, "PingFang SC", "Microsoft Yahei", sans-serif;
    font-size: 14px;
}

img{
    width: 100%;
}

:root{
    --primary-color: #ff434f;
    --secondary-color: #e3e3e3;
    --text-color-lightest: #e7e9ec;
    --text-color-darker: #2e2e2e;
    --text-color-dark: #494949;
    --text-color-gray: #8b8b8b;
    --text-color-dark-gray: #727272;
    --text-color-light-gray: #c6c6c6;
    --backdrop-color: rgba(42, 42, 42, 0.7);
    overflow-y: auto;
    overflow-x: hidden;  
    /*解决出现滚动条问题 */
}
/* 头部 */
header{
    width: 100vw; /*设置成max-width:100vw解决出现滚动条问题*/
    height: 80px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    z-index: 200;
    position: relative;

}
.logo{
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color-lightest);
}
header nav{
    justify-self: end;
}
header nav i{
    color: var(--text-color-lightest);
}
header nav a{
    margin: 0 24px;
    color: var(--text-color-lightest);
    text-decoration: none;
}
header .burger{
    display: none;
}
header.sticky{
    /* width: 100vw; */
    position: fixed;
    background-color: #fff;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.2);
    animation: dropDown 1s ease-in-out forwards;
}
@keyframes dropDown{
    from {
        transform: translateY(-100px);
    }
    to 
    {
        transform: translateY(0);
    }
}
header.sticky .logo,
header.sticky nav a,
header.sticky nav i {
  color: var(--text-color-darker);
}
/* 轮播 */
.glide{
    top: -80px;
    position: relative;
    z-index: 50;
}

.glide__slide img,
.glide__slide video{
    width: 100vw;
    height: 100vh;
    object-fit: cover; /*自动等比例缩放*/
}

.slide-caption{
    position: absolute;
    text-align: center;
    max-width: 60vw;
    color: var(--text-color-lightest);
    z-index: 70;
}
.glide__slide{
    display: flex;
    justify-content: center;
    align-items: center;
}
.slide-caption h1{
    font-size: 54px;
    font-weight: 600;
}
.slide-caption h3{
    font-size: 22px;
    margin: 48px 0;
}
.backdrop{
    background-color: var(--backdrop-color);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.1;
    z-index: 60;
}
.explore-btn{
    padding: 14px 32px;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--text-color-lightest);
    font-size: 18px;
    border: none;
    cursor: pointer;
}
/* 内容部分 */
/* 通用 */
.content-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
section{
    display: grid;
    justify-items: center;
    padding: 0 80px;
    max-width: 1180px;
}
.title1{
    font-size: 34px;
    color: var(--text-color-darker);
}
.title1::after{
    content: '';
    display: block;
    height: 4px;
    width: 80%;
    background-color: var(--primary-color);
    transform: translateX(10%);
    margin-top: 14px;
}
.intro{
    font-size: 18px;
    margin: 28px 0 60px 0;
    color: var(--text-color-dark-gray);
}
/* 区域背景色，因为区域有最大宽度限制，用before来设置占满浏览器宽度 */
.section-bg {
    position: relative;
}
  
.section-bg::before {
    content: "";
    display: block;
    position: absolute;
    background-color: #f9fbfb;
    width: 100vw;
    height: 100%;
    z-index: -1;
}
/* 关于我们 */
.about-us{
    margin-bottom: 32px;
}
.features{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: 126px 126px;
    column-gap: 5vw;
}
.feature{
    display: grid;
    grid-template-areas: 
    "icon title"
    "icon content";
    grid-template-columns: 60px 1fr;
    grid-template-rows: 1fr 3fr;
}
.feature i.fas{
    grid-area: icon;
    font-size: 34px;
    color: var(--primary-color);
}
.feature-title{
    grid-area: title;
    font-size: 18px;
    color: var(--text-color-darker);
}
.feature-content{
    grid-area: content;
    margin-top: 8px;
    color: var(--text-color-gray);
}

/* 成功案例 */

.showcases {
    max-width: unset;
    padding: 0;
    padding-top: 72px;
}
.filter-btns{
    margin-top: 54px;
    margin-bottom: 38px;
}
.filter-btn{
    margin: 0 7px;
    background-color: var(--secondary-color);
    border: 0;
    color: var(--text-color-dark-gray);
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.5s;
}
/* .filter-btn:focus,
.filter-btn:active{
    outline: none;
} */
.filter-btn:hover,
.filter-btn.active{
    background-color: var(--primary-color);
    color: white;
}
.showcases .cases{
    width: 100vw;
}
.showcases .case-item{
    width: 25vw;
    height: 20vw;
    /* 宽高均用vw为了保持图片比在5：4 */
    overflow: hidden;
}
.case-item img{
    height: 100%;
    object-fit: cover;
}
/* 服务流程 */
.service{
    padding-top: 131px;
}
.services{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: 1fr 1fr;
    column-gap: 38px;
    row-gap: 34px;
}
.service-item{
    display: grid;
    grid-template-areas: 
    'icon title'
    'icon content';
    grid-template-columns: 70px 1fr;
    grid-template-rows: 1fr 3fr;
    padding: 24px;
}
.service-item i.fas{
    grid-area: icon;
    font-size: 42px;
    color: var(--primary-color);
    padding-top: 6px;
}
.service-item .service-title{
    grid-area: title;
    font-size: 24px;
    color: var(--text-color-dark)
}
.service-item .service-content{
    grid: content;
    font-size: 16px;
    color: var(--text-color-gray);
    line-height: 30px;
    margin-top: 8px;
}
/* 团队介绍 */
.team-intro{
    margin-top: 48px;
    padding-top: 62px;
    padding-bottom: 52px;
}
.team-members{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    column-gap: 24px;
    margin-top: 86px;
}
.team-member{
    background-color: #fff;
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 28px;
    /* display: grid;
    justify-items: center; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.5s;
}
.team-member:hover{
    transform: 
    translateY(-20px) /*向上*/
    scale(1.05)/*放大*/;
    box-shadow: 0px 0px 36px rgba(0, 0, 0, 0.1);
}
.profile-image{
    overflow: hidden;
}
.profile-image img {
    width: 100%;
    height: 264px;
    object-fit: cover;
    object-position: top center;
  }
.team-member .name {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color-dark);
}
.team-member .position{
    color: var(--text-color-dark-gray);
    margin-top: 12px;
    margin-bottom: 18px;
}

.social-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 42px;
}
.social-links li{
    list-style: none;
}
.social-links a{
    color: var(--text-color-dark);
    text-decoration: none;
}
/* 数据展示 */
.data-section{
    background-image: url(images/adult-business-computer-contemporary-380769.jpg);
    background-size: cover;
    background-position: center;
    width: 100vw;
    max-width: unset;
    height: 255px;
    display: grid;
    grid-template-columns: repeat(4,minmax(auto,220px));
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
}
.data-section::before{
    content: '';
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--backdrop-color);
    z-index: 1;
}
.data-piece{
    width: 250px;
    color: #fff;
    z-index: 40;
    display: grid;
    grid-template-rows: repeat(3,1fr);
    justify-items: center;
}
.data-piece i.fa{
    font-size: 44px;
}
.data-piece .num{
    margin-top: 7px;
    font-size: 41px;
    font-weight: 600;
}
.data-piece .data-desc{
    font-size: 18px;
    font-weight: 500;
}
/* 动态 */
.company-activities{
    margin-top: 88px;
}
.activities{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    column-gap: 24px;
}
.activity{
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: 0.5s;
}
.act-img-wrapper{
    height: 255px;
    overflow: hidden;
    /*抵消容器的padding 使图片拉满 其他内容还在padding容器内*/
    margin: -24px; 
    margin-bottom: 0;
    /*先消除padding 再复原bottom*/
}
.act-img-wrapper img{
    min-height: 300px;
    object-fit: cover;
}
.activity .meta{
    display: flex;
    margin-top: 20px;
    margin-bottom: 12px;
    color: var(--text-color-light-gray);
    font-size: 12px;
}
.activity .meta > p:last-child{
    margin-left: 36px;
}
.act-title{
    color: var(--text-color-darker);
    font-size: 18px;
    margin-bottom: 16px;
}
.activity article{
    color: var(--text-color-gray);
    letter-spacing: 0.54px;
    margin-bottom: 16px;
}
.readmore-btn{
    border: 0;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    margin-top: 24px;
}
.activity:hover{
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0px 0px 36px rgba(0, 0, 0, 0.1);
}
/* 底部 */
footer{
    margin-top: 124px;
    background-color: #181818;
    padding-bottom: 24px;
    padding-top: 72px;
    display: grid;
    justify-items: center;
}
.footer-menus{
    width: 100%;
    max-width: 1180px; /*与section同*/
    display: grid;
    grid-template-columns:  2fr repeat(4,1fr);
    padding:0 80px;
    position: relative;
}
.footer-menu{
    justify-self: end; /*向右靠齐*/
}
.menu-title{
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
}
.contact-us{
    justify-self: start;
    color: var(--text-color-lightest);
}
.contact-us p:not(:first-child){
    /*除了第一个子元素外的其他元素*/
    margin-bottom: 16px;
}
.menu-items li{
    list-style: none;
    margin-bottom: 8px;
}
.menu-items li a{
    color:var(--text-color-lightest);
    font-weight: 300;
    text-decoration: none;
}
.icp-info{
    margin-top: 24px;
    margin-bottom: 16px;
}
.icp-info,.rights{
    grid-column: 1 /-1;
    justify-self: center;
    color: #fff;
}
.scrollToTop{
    display: none;
    z-index: 100;
}
.scrollToTop a{
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color:var(--primary-color);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    position: fixed;
    bottom: 60px;
    right: 30px;
}
/* ----自适应---- */
@media (max-width:1100px){
    header{
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }
    header nav{
        display: none;
    }
    .burger-line1,
    .burger-line2,
    .burger-line3{
        width: 20px;
        height: 2px;
        background-color: var(--text-color-lightest);
        transition: 0.5s;

    }
    header .burger{
        width: 20px;
        height: 6px;
        display: block;
        position: relative;
        justify-self: end;
        cursor: pointer;
    }
    .burger-line1{
        position: absolute;
        top: -6px;
    }
    .burger-line3{
        position: absolute;
        top: 6px;
    }
    /*导航展开*/
    header.open nav{
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #fff; 
        display: grid;
        grid-auto-rows: max-content;
        justify-items: end;
        padding: 0 40px;
        animation: slideDown 0.5s ease-out forwards;
    }
    header.open .logo{
        color: var(--text-color-darker);
        z-index: 50;
    }
    header.open nav >*{
        color: var(--text-color-darker);
        font-size: 18px;
        margin: 4px 0;
        opacity: 0;
        animation: showMenu 0.5s linear forwards 0.4s;
    }
    header.open nav>i.fas{
        margin-top: 10px;
    }
    header.open .burger-line1,
    header.open .burger-line2,
    header.open .burger-line3,
    header.sticky .burger-line1,
    header.sticky .burger-line2,
    header.sticky .burger-line3{
        background-color: var(--text-color-darker);
    }
    /* 菜单栏转换x */
    header.open .burger-line1{
        transform: rotate(45deg) translate(3px,5px);
    }
    header.open .burger-line2{
        opacity: 0;
        transform: translateX(5px);
    }
    header.open .burger-line3{
        transform: rotate(-45deg) translate(3px,-5px);
    }
    @keyframes slideDown{
        from{
            height: 0;
            opacity: 0;
        }to{
            height: 100vh;
            opacity: 1;
            padding-top: 80px;
        }
    }
    @keyframes showMenu {
        from{
            opacity: 0;
            transform: translateY(-1vh);
        }to{
            opacity: 1;
        }
    }
    .service-item .service-title{
        font-size: 20px;
    }
    .service-item .service-content{
        font-size: 14px;
        line-height: 24px;
    }
    .team-members{
        grid-template-columns: 1fr 1fr;
        column-gap: 6vw;
        row-gap: 36px;
    }
    .activities{
        grid-template-columns: 1fr 1fr;
        row-gap: 36px;
    }
}
@media (max-width:992px) {
    .slide-caption h1{
        font-size: 48px;
    }
    .slide-caption h3{
        font-size: 18px;
    }
    .features,.services{
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: unset;
    }
    .data-section{
        grid-template-columns: repeat(2,minmax(200px,auto));
        row-gap: 24px;
        height: auto;
        padding:24px 0;
        background-size: 200%;
    }
    .showcases .case-item{
        width: calc(100vw/3);
    }
}
@media (max-width:768px) {
    section,
    .footer-menus{
        padding:0 40px;
    }
    .features,
    .services{
        grid-template-columns: 1fr;
    }
    .team-members{
        grid-template-columns: minmax(200px,400px);
    }
    .data-section{
        grid-template-columns: 1fr;
        background-size: 300%;
    }
    .activities{
        grid-template-columns: 1fr;
    }
    .showcases .case-item{
        width: calc(100vw/2);
        height: 30vw;
    }
    .footer-menus{
        grid-template-columns: 2fr repeat(2,1fr);
    }
    .contact-us{
        grid-row: 1/3;
    }
    .footer-menu{
        text-align: right;
    }
}
@media (max-width:576px) {
    .slide-caption h1{
        font-size: 28px;
    }
    .slide-caption h3{
        font-size: 14px;
    }
    .explore-btn{
        padding:8px 18px;
        font-size: 14px;
    }
    .showcases .case-item{
        width: 100vw;
        height: 60vw;
    }
    .footer-menus{
        grid-template-columns: 1fr;
    }
    .footer-menu{
        justify-self: unset;
        text-align: left;
    }
}